package com.timoon.sample.utils;

import com.timoon.sample.dao.model.Product;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */

public class Printor {

	public static void printProduct(Product product){
		System.err.println("++++++++++++++++++++++++++++++++");
		if(product==null){
			System.err.println("product为空");
		}else{
			if(product.getId().compareTo(new Integer(18))==0){
				System.err.println("18");
			}
			
			System.err.println("id="+product.getId());
			System.err.println("name="+product.getName());
			System.err.println("photo="+product.getPhoto());
		}
		System.err.println("================================");
	}
}
